projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8df4d1
)
Update XKB map on MappingNotify
author
Po Lu
<luangruo@yahoo.com>
Mon, 29 Nov 2021 04:39:16 +0000
(12:39 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 29 Nov 2021 04:39:16 +0000
(12:39 +0800)
* src/xterm.c (handle_one_xevent): Update XKB map when X
tells us the keyboard map has been updated.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index 8045470bdd3190be272d4144b55e0acf98e32428..253e0eb20b01829205c984801f42584c74289657 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-9813,6
+9813,11
@@
handle_one_xevent (struct x_display_info *dpyinfo,
x_find_modifier_meanings (dpyinfo);
FALLTHROUGH;
case MappingKeyboard:
+#ifdef HAVE_XKB
+ if (dpyinfo->xkb_desc)
+ XkbGetUpdatedMap (dpyinfo->display, XkbAllComponentsMask,
+ dpyinfo->xkb_desc);
+#endif
XRefreshKeyboardMapping ((XMappingEvent *) &event->xmapping);
}
goto OTHER;